<template>
	<div>
		<scan></scan>

	</div>
</template>

<script>
	import scan from "@/common/pdaScan.vue"

	export default {
		components: {
			scan
		},
		//获取到扫码的结果，进行后续的处理
		onShow: function() {
			var _this = this
			uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器  
			uni.$on('scancodedate', function(data) {
				console.log('你想要的code：', data.code)
			})
		}
	}
</script>

<style scoped>

</style>